package com.roadmap.entities;

import java.io.Serializable;
import java.util.Date;

import com.roadmap.common.BaseConst;
import com.roadmap.common.BaseEntity;

/**
 * id -> friendAId; createdTime -> startDate
 */
public class Friendship extends BaseEntity implements Serializable {
	private static final long serialVersionUID = -8419582759712999168L;
	private String friendId;
	private int type;
	private int frequency;
	
	public Friendship() {
		this.type = BaseConst.RELEATIONSHIP_TYPE_FRIEND;
		this.frequency = 1;
		this.setCreatedTime(new Date());
	}

	public String getFriendId() {
		return friendId;
	}

	public void setFriendId(String friendId) {
		this.friendId = friendId;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getFrequency() {
		return frequency;
	}

	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}

	@Override
	public Date getCreatedTime() {
		return null;
	}
}
